<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>sidebar</title>
<link href="../Public/css/index.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
function checkSession() {
    if("{$_SESSION['admin']}"=="") {
       alert('请先登录');
       top.location.href='login';
     }
}
function alterIcon(flag) {
	closeAllMenu(0);
	if(flag==1) {
		document.getElementById("tree_icon").style.backgroundImage = 'url(../Public/images/main/main_12_2.gif)';
		document.getElementById("tree_list_left").style.display = "none";
		document.getElementById("tree_list_right").style.display = "block";
	}
	else {
		document.getElementById("tree_icon").style.backgroundImage = 'url(../Public/images/main/main_12.gif)';
		document.getElementById("tree_list_right").style.display = "none";
		document.getElementById("tree_list_left").style.display = "block";
	}
}

function alterMenu(id,flag) {
	var menu_id = document.getElementById("menu_"+id);
	var menu_detail = document.getElementById("menu_detail_"+id);
	if(flag==1) {
		menu_id.style.backgroundImage = 'url(../Public/images/main/sidebar_menu_2.gif)';
		menu_id.style.color = "#000";
	}else if(menu_detail.style.display==""||menu_detail.style.display=="none"){
		menu_id.style.backgroundImage = 'url(../Public/images/main/sidebar_menu.gif)';
		menu_id.style.color = "#fff";
	}
}

function closeAllMenu(id) {
	var size = 7; 
	for(var i=1;i<size;i++) {
		menu_id = document.getElementById("menu_"+i);
		menu_id.style.backgroundImage = 'url(../Public/images/main/sidebar_menu.gif)';
		menu_id.style.color = "#fff";
		if(i!=id) {
			menu_detail_id = document.getElementById("menu_detail_"+i);
			menu_detail_id.style.display = "none";
		}
	}
}

function showMenu(id) {
	closeAllMenu(id);
	var menu = document.getElementById("menu_"+id);
	var menu_detail = document.getElementById("menu_detail_"+id);
	var style = menu_detail.style;
	if(style.display==""||style.display=="none") {
		menu.style.backgroundImage = 'url(../Public/images/main/sidebar_menu_2.gif)';
		menu.style.color = "#000";
		style.display = "block";
	}
	else 
		style.display = "none";
}
</script>
</head>

<body onload="checkSeesion()">
	<div id="left">
		<div id="left_menu"></div>
		<div id="left_tree">
			<div id="tree_icon">
				<div id="member"><img src="../Public/images/main/member.gif" style="cursor:pointer;" onclick='alterIcon(0)' />会员管理</div>
				<div id="system"><img src="../Public/images/main/system.gif" style="cursor:pointer;" onclick='alterIcon(1)' />网站管理</div>
			</div>
			<div id="tree_list_left">
				<div class="tree_list"><a href="javascript:;" title="会员资料" id="menu_1"  onclick='showMenu(1)' onmouseover='alterMenu(1,1)' onmouseout='alterMenu(1,0)'>会员资料</a></div>
   				<div id="menu_detail_1" class="tree_list_detail">
    				<a href="__GROUP__/Member/member/flag/1" target="mainFrame" onclick="checkSession();" title="会员列表">会员列表</a>
        			<a href="__GROUP__/Member/search" target="mainFrame" onclick="checkSession();" title="搜索会员">搜索会员</a>
        			<a href="__GROUP__/Member/member/flag/2" target="mainFrame" onclick="checkSession();" title="VIP会员">VIP会员</a>
        			<a href="__GROUP__/Member/member/flag/3" target="mainFrame" onclick="checkSession();" title="贵宾会员">贵宾会员</a>
    			</div>
    			<div class="tree_list"><a href="javascript:;" title="会员审核" id="menu_2" onclick='showMenu(2)' onmouseover='alterMenu(2,1)' onmouseout='alterMenu(2,0)'>会员审核</a></div>
   				<div id="menu_detail_2" class="tree_list_detail">
    				<a href="__GROUP__/Member/member/flag/4" target="mainFrame" onclick="checkSession();" title="资料审核">资料审核</a>
        			<a href="__GROUP__/MemberVeri/photo" target="mainFrame" onclick="checkSession();" title="照片审核">照片审核</a>
        			<a href="__GROUP__/MemberVeri/identity" target="mainFrame" onclick="checkSession();" title="认证审核">认证审核</a>
        			<a href="__GROUP__/MemberVeri/message/sort/2" target="mainFrame" onclick="checkSession();" title="站内信审核">站内信审核</a>
        			<a href="__GROUP__/MemberVeri/message/sort/1" target="mainFrame" onclick="checkSession();" title="状态审核">状态审核</a>
    			</div>
    			<div class="tree_list"><a href="javascript:;" title="会员展示" id="menu_3" onclick='showMenu(3)' onmouseover='alterMenu(3,1)' onmouseout='alterMenu(3,0)'>会员展示</a></div>
   				<div id="menu_detail_3" class="tree_list_detail">
    				<a href="__GROUP__/MemberShow/showMember" target="mainFrame" onclick="checkSession();" title="非缘莫属">非缘莫属</a>
      				<a href="__GROUP__/MemberShow/showBanner" target="mainFrame" onclick="checkSession();" title="首页横幅">首页横幅</a>  
      				<a href="__GROUP__/MemberShow/showVip" target="mainFrame" onclick="checkSession();" title="绝对精英">绝对精英</a>
      				<a href="__GROUP__/MemberShow/showArticle/id/1" target="mainFrame" onclick="checkSession();" title="品牌合作">品牌合作</a>    			
    				<a href="__GROUP__/MemberShow/showArticle/id/2" target="mainFrame" onclick="checkSession();" title="诚聘贤士">诚聘贤士</a>
    			</div>
			</div>
			<div id="tree_list_right" style="display:none">
				<div class="tree_list"><a href="javascript:;" title="动态资讯"  id="menu_4" onclick='showMenu(4)' onmouseover='alterMenu(4,1)' onmouseout='alterMenu(4,0)'>动态资讯 </a></div>
   				<div id="menu_detail_4" class="tree_list_detail2">
    				<!-- <a href="javascript:;" target="mainFrame" onclick="checkSession();" title="顾问管理">顾问管理</a> | <a href="__GROUP__/Infomation/add" target="mainFrame" title="添加 ">添加</a><br/> -->
        			<a href="__GROUP__/Infomation/newsList" target="mainFrame" onclick="checkSession();" title="潮流婚恋">潮流婚恋</a> | <a href="__GROUP__/Infomation/addNews" target="mainFrame" title="添加 ">添加</a><br/>
        			<a href="__GROUP__/Infomation/storyList" target="mainFrame" onclick="checkSession();" title="成功晒客">成功晒客</a> | <a href="__GROUP__/Infomation/addStory" target="mainFrame" title="添加 ">添加</a><br/>
        			<a href="__GROUP__/Infomation/outingList" target="mainFrame" onclick="checkSession();" title="乐享活动">乐享活动</a> | <a href="__GROUP__/Infomation/addOuting" target="mainFrame" title="添加 ">添加</a><br/>
        			<!-- <a href="javascript:;" target="mainFrame" onclick="checkSession();" title="帮助中心">帮助中心</a> | <a href="__GROUP__/Infomation/add" target="mainFrame" title="添加 ">添加</a>  -->
    			</div>
    			<div class="tree_list"><a href="javascript:;" title="协议说明" id="menu_5" onclick='showMenu(5)' onmouseover='alterMenu(5,1)' onmouseout='alterMenu(5,0)'>协议说明</a></div>
   				<div id="menu_detail_5" class="tree_list_detail">
    				<a href="__GROUP__/Protocol/show/id/1" target="mainFrame" onclick="checkSession();" title="公司简介">公司简介</a>
        			<a href="__GROUP__/Protocol/show/id/2" target="mainFrame" onclick="checkSession();" title="资质认证">资质认证</a>
        			<a href="__GROUP__/Protocol/show/id/3" target="mainFrame" onclick="checkSession();" title="联系我们">联系我们</a>
        			<a href="__GROUP__/Protocol/show/id/4" target="mainFrame" onclick="checkSession();" title="免责申明">免责申明</a>
        			<a href="__GROUP__/Protocol/show/id/5" target="mainFrame" onclick="checkSession();" title="服务条款">服务条款</a>
					<a href="__GROUP__/Protocol/show/id/6" target="mainFrame" onclick="checkSession();" title="婚姻法规">婚姻法规</a>
    			</div>
    			<div class="tree_list"><a href="javascript:;" title="系统设置" id="menu_6" onclick='showMenu(6)' onmouseover='alterMenu(6,1)' onmouseout='alterMenu(6,0)'>系统设置</a></div>
   				<div id="menu_detail_6" class="tree_list_detail">
    				<a href="__GROUP__/Manage/modify" target="mainFrame" onclick="checkSession();" title="修改密码">修改密码</a>
        			<a href="__GROUP__/Manage/account" target="mainFrame" onclick="checkSession();" title="账户管理">账户管理</a>
    			</div>
			</div>
		</div>
		<div id="tree_down"></div>
	</div>
</body>
</html>
